import config from '@/utils/config';
import { MockMethod } from 'vite-plugin-mock';

// 上传图片
const uploadImage = {
  url: config.url.upload_image,
  method: 'post',
  response: () => {
    return {
      code: 200,
      data: 123,
      message: 'success',
    };
  },
};

// 批量上传图片
const uploadImages = {
  url: config.url.upload_images,
  method: 'post',
  response: () => {
    return {
      code: 200,
      data: [123, 456],
      message: 'success',
    };
  },
};

export default [uploadImage, uploadImages] as MockMethod[];
